// pages/mv/mv.js
const http=require('../../util/http')
Page({


  data: {
    movies:[]
  },
  onLoad:function(options){
   http.getMvData(res=>{
     this.handleData(res)
   })
  },
  handleData(res){
    
    this.setData({
      movies:res.data.data,
    })
    
  },
  handleClick(event){
    var{id}=event.currentTarget.dataset;
    wx.navigateTo({
      url:'/pages/mvPlay/mvPlay?id='+id,
        })

  }
 
})